package com.bang.daybreak.test.service.impl;

import com.bang.daybreak.common.annotation.TargetDataSource;
import com.bang.daybreak.test.mapper.PublicDicMapper;
import com.bang.daybreak.test.model.entity.PublicDic;
import com.bang.daybreak.test.service.IPublicDicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : wdj
 * @since : 2019/6/30 0030 下午 12:57
 * @version 1.0
 */
@Service
public class IPublicDicServiceImpl implements IPublicDicService {
    @Autowired
    private PublicDicMapper publicDicMapper;

    @Override
    @TargetDataSource(value = "slave")
    public PublicDic selectOtherOracle(String uuid) {
        return publicDicMapper.selectOtherOracle(uuid);
    }
}
